<template>
	<view>
		<u-empty v-if="!list.length"/>
		<view v-for="(item,index) in list" :key="index" class="p20 border-b">
			<view class="flex">
				<u-avatar :src="item.avatar||''" size="92"></u-avatar>
				<view class="flex1 pl24">
					<view class="fs30 fw-700">{{item.name}}</view>
					<view class="fs26 color-999 mt12">{{item.add_time}}</view>
				</view>
				<u-rate disabled :value="item.star*1" :count="5"></u-rate>
			</view>
			<view class="fs28 color-666 mt24 lh15">{{item.content}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "commentList",
		props:{
			list:{
				default:''
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">

</style>
